
package org.bsplus.domain;

import javax.persistence.Basic;
import javax.persistence.Entity;

@Entity
public class IssueSeverity extends AbstractEntity
{
    public static final IssueSeverity BLOCKER = new IssueSeverity(1L, "Blocker");
    public static final IssueSeverity CRITICAL = new IssueSeverity(2L, "Critical");
    public static final IssueSeverity MAJOR = new IssueSeverity(3L, "Major");
    public static final IssueSeverity MINOR = new IssueSeverity(4L, "Minor");
    public static final IssueSeverity TRIVIAL = new IssueSeverity(5L, "Trivial");

    @Basic
    private String description;

    public IssueSeverity()
    {
    }

    public IssueSeverity(Long id, String description)
    {
        setId(id);
        setDescription(description);
    }

    /**
     * @return the description
     */
    public String getDescription()
    {
        return description;
    }

    /**
     * @param description the description to set
     */
    public void setDescription(String description)
    {
        this.description = description;
    }
}
